﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Medianamik.UI.Mediasend.Logic;

namespace Medianamik.UI.Mediasend
{
    public partial class mediasendManagement : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                EditButton.DataBind();
        }

        #region Lock

        protected void LockLink_RequestFailed(object sender, CommandEventArgs e)
        {
            LockInfoTooltip.ObjectId = new Guid((string)e.CommandArgument);
            LockInfoTooltip.DataBind();
            LockInfoTooltip.Show();
        }

        protected void LockInfoTooltip_LockDeleted(object sender, EventArgs e)
        {
            //TODO : Rediriger vers le noeud dévérouillé (besoin dans EventArgs)
            //grdNodes.Rebind();
            //gridUpdatePanel.Update();
        }

        #endregion


        #region " Members "

            /// <summary>
            /// Retourne le nom du noeud
            /// </summary>
            protected string BaseNodeTemplateName
            {
                get
                {
                    return Configuration.Instance.Properties.BaseNodeTemplateNode == null
                           ? "" : Configuration.Instance.Properties.BaseNodeTemplateNode.Name;
                    
                }

            }

        #endregion
    }
}
